@import '../../style/var';
.box {
  display: flex;
}
.com-border {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  border-radius: 5px;
}
.upload-btn-box {
  .com-border();
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9d9d9;
  background-color: #fafafa;
  cursor: pointer;
}

.list-item {
  position: relative;
  .com-border();
  text-align: center;
  border: 1px solid #d9d9d9;
  z-index: 1;
  overflow: hidden;
  &:hover {
    .item-btns {
      opacity: 1;
      top: 0;
    }
  }
  .item-btns {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    .btn-icon {
      cursor: pointer;
      margin: 0 5px;
      font-size: 18px;
    }
  }
}

.img-box {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 90px;
  height: 90px;
  z-index: 2;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.text-box {
  height: 100%;
  padding: 5px;
  line-height: 1.2;
  background-color: #fafafa;
}
